const getters = {
	getCode: () => () => {
		console.log(1);
		uni.getProvider({
			service: 'oauth'
		}).then(res => {
			console.log(res);
			let provider = res[1].provider[0]
			uni.login({
				provider: provider,
			}).then(res1 => {
				return res1[1]
			}).catch(error => {
				console.log(error);
				reject(error)
			})
		})
	}
}

export default {
	getters
}